import os

# 数据库配置
DATABASE = {
    'host': 'localhost',
    'user': 'root',
    'password': 'root',
    'database': 'ecommerce_chatbot',
    'port': 3306,
    'charset': 'utf8mb4'
}

# 讯飞星火API配置
XUNFEI_API_CONFIG = {
    'app_id': '6f6c216b',
    'api_key': 'Bearer wBvSqgRWVkfzDNyvHXrJ:komPWMzRdawlEUvbXsuX',
               # '5b188f23062438a34ba6297c1990a216',
#     Bearer wBvSqgRWVkfzDNyvHXrJ:komPWMzRdawlEUvbXsuX
    'api_secret': 'NDE1MDE5ZWEzMWY3ZjM2Mzc4MDBhNmE4',
    'url': 'https://spark-api-open.xf-yun.com/v1/chat/completions',
    'domain': 'general'
}

# 应用配置
DEBUG = True
SECRET_KEY = os.urandom(24)

# 服务配置
HOST = "0.0.0.0"
PORT = 5000